import  httpInstance  from '@/utils/http'


//获取banner
export function getBannerList(params = {}) {
  const { distributionSite = '1' } = params
  return httpInstance({
    //默认为一 商品为2
    url:"/home/banner",
    params:{
      distributionSite
    }
  })
} 

//获取新鲜好物

export function getHomeNew() {
  return httpInstance({
    url:'/home/new'
  })
}

//人气推荐
export function getHomeHot() {
  return httpInstance({
    url:'/home/hot'
  })
}

/**
 * @description: 获取所有商品模块
 * @param {*}
 * @return {*}
 */
export const getGoodsAPI = () => {
  return httpInstance({
    url: '/home/goods'
  })
}